<?php
class DocumentTableSeeder extends Seeder {

    public function run()
    {
        // to use non Eloquent-functions we need to unguard
        Eloquent::unguard();

        // All existing users are deleted !!!
        DB::table('documents')->delete();

		$img_path = "C:temp/V0_D2553-03-01_H0102925.tif";
		
		$document = new Document;
		$document->create_by = 'Admin';
		$document->update_by = 'Admin';
		$document->content = File::get($img_path);
        $document->save();
		
		$template = Template::find(1);
		
    }
}